import { openBuildService } from '../../helper/service'

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
    //选择单位下拉框
    getSettledList: {
        url: '/adminc/v1/organization_manage/o_company_apply/get_settled_list',
        method: 'get'
    },
    //审核结果列表数据渲染
    getcheckData: {
        url: '/adminc/v1/config_manage/b_code/get_code_list',
        method: 'get'
    },
    //单位详细信息
    getCompDetail: {
        url: '/adminc/v1/organization_manage/o_company_apply/get_comp_apply_detail',
        method: 'get'
    },
    //上传图片
    uploadFile: {
        url: '/adminc/v1/upload/upload_file_remote',
        method: 'post'
    },
    //审核详情页面->保存时触发的事件
    updateCheckCompany: {
        url: '/adminc/v1/organization_manage/o_company_apply/update_check_company',
        method: 'put'
    },
    //修改页面->保存时调用的接口
    onModifyCompany: {
        url: '/adminc/v1/organization_manage/o_company_apply/update_settled_company',
        method: 'put'
    },
    //获取省接口
    getProvince: {
        url: '/adminc/v1/organization_manage/b_area/get_area_box_list',
        method: 'get',
    },
    //获取市接口
    getCity: {
        url: '/adminc/v1/organization_manage/b_area/get_area_box_list',
        method: 'get',
    },
    //获取区接口
    getArea: {
        url: '/adminc/v1/organization_manage/b_area/get_area_box_list',
        method: 'get',
    },
    //获取证件类型
    getCard: {
        url: '/adminc/v1/config_manage/b_code/get_code_list',
        method: 'get',
    },
}
export default openBuildService(settings)